﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EventManager.Model.Entites
{
    public class Categories
    {
        [Key]
        public Guid Id { get; set; }

        [Required]
        public string Name { get; set; }
        public string Description { get; set; }
        public ICollection<Events> Events { get; set; }

        public Categories()
        {
            Events = new HashSet<Events>();
        }

    }
}
